import { createSlice } from '@reduxjs/toolkit'

const initialState = {
  value: 0,
  start:"北京",
  end:"三亚",
  date:"20-20-20"
}

export const Citylist = createSlice({
  name: 'counter',
  initialState,
  reducers: {
    setstart(state,action){
      state.start = action.payload;
      
    },
    setend(state,action){
      state.end = action.payload
    },
    setdate(state,action){
      state.date = action.payload
    }
  },
})

// Action creators are generated for each case reducer function
export const { setstart,setend,setdate} = Citylist.actions

